package com.ctshk.rpc.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;


/**
 * @description 用户信息
 * @author 谢诗宏
 * @date 2020/12/15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_user")
@ApiModel(value="SysUser对象", description="后台用户信息表")
public class SysUser extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户名")
	private String username;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "性别")
	private Integer gender;

	@ApiModelProperty(value = "部门ID")
	private Long deptId;

	@ApiModelProperty(value = "用户头像")
	private String avatar;

	@ApiModelProperty(value = "删除标识（0未删除 1已删除）")
	private Integer isDeleted;

	@ApiModelProperty(value = "客户端IP")
	private String clientIp;

	@ApiModelProperty(value = "用户邮箱")
	private String email;

	@ApiModelProperty(value = "上次修改密码时间")
	private LocalDateTime lastChangePwd;

	@ApiModelProperty(value = "上次登录时间")
	private LocalDateTime lastLoginTime;

	@ApiModelProperty(value = "角色，存角色ID，用逗号隔开")
	private String roles;

	@ApiModelProperty(value = "职位")
	private String position;

	@ApiModelProperty(value = "中文姓")
	private String cnSurname;

	@ApiModelProperty(value = "中文名")
	private String cnName;

	@ApiModelProperty(value = "英文姓")
	private String enSurname;

	@ApiModelProperty(value = "英文名")
	private String enName;

	@ApiModelProperty(value = "员工号")
	private String employeeNumber;

	@ApiModelProperty(value = "电话号码")
	private String mobile;

	@ApiModelProperty(value = "电话号码区号")
	private String mobileAreaCode;

	@ApiModelProperty(value = "其他电话")
	private String mobileOther;

	@ApiModelProperty(value = "其他电话区号")
	private String mobileOtherAreaCode;

	@ApiModelProperty(value = "座机号")
	private String telephone;

	@ApiModelProperty(value = "座机号区号")
	private String telephoneAreaCode;

	@ApiModelProperty(value = "传真")
	private String fax;

	@ApiModelProperty(value = "传真区号")
	private String faxAreaCode;

	@ApiModelProperty(value = "创建人")
	private Long createId;

	@ApiModelProperty(value = "修改人")
	private Long modifiedId;

	@ApiModelProperty(value = "账号类型 1 普通账号	2 供应商账号	3 代理商账号	4 大客户账号")
	private Integer accountType;

	@ApiModelProperty(value = "关联的系统的ID，比如代理商的ID")
	private Long relationId;

	@ApiModelProperty(value = "状态")
	private Integer status;

}
